<% unless @parent.blank? -%>
  <%= areas_crumble_path_with_link(@parent){ |p| link_to_remote p.title, :url => schools_list_area_path(p), :method => :get, :before => "Element.hide('schools-list');Element.show('schools-list-spinner')"} %>
<% end -%>
 > <span style="color:#gray;"><%= @areas.empty? ? "请选择学校" : "请选择学校所在地" %></span><br />
<% for a in @areas -%>
    <%= link_to_remote a.title, :url => schools_list_area_path(a), :method => :get, :before => "Element.hide('schools-list');Element.show('schools-list-spinner')" %>
<% end -%>

<% if @schools -%>
  <%= "还没有学校数据，你可以在旅途中发现新学校" if @schools.empty? %>
  <ul>
  <% for school in @schools -%>
    <li><%= h school.title %>(<%= link_to "查看学校资料", school_path(school.id), :target => "_blank" %>) <%= link_to_function "多背一公斤去该学校", "select_school('#{school.id}', '#{school.title}')" %></li>
  <% end -%>
  </ul>
<% end -%>
